<?php

namespace common\models\minisite;

use Yii;

/**
 * This is the model class for table "d_mini.t_activity_show_feel_reply".
 *
 * @property integer $id
 * @property integer $as_id
 * @property integer $asf_id
 * @property string $c_content
 * @property integer $uid
 * @property string $db_time
 */
class MActivityShowFeelReply extends \yii\db\ActiveRecord
{
    public static $CHANNEL = [0=>'',1=>'回复', 2=>'评论'];

    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'd_mini.t_activity_show_feel_reply';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['asf_id', 'uid', 'as_id'], 'integer'],
            [['db_time'], 'safe'],
            [['c_content'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'as_id' =>'活动',
            'asf_id' => '心得',
            'c_content' => '评论内容',
            'uid' => '用户',
            'db_time' => 'Db Time',
        ];
    }

    /**
     * @inheritdoc
     * @return \services\models\minisite\TActivityShowFeelReplyQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \services\models\minisite\TActivityShowFeelReplyQuery(get_called_class());
    }
}
